package org.spring.activemq.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSender {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext c = new ClassPathXmlApplicationContext(
				"appliactionContext.xml");
		Producer d = (Producer) c.getBean("producer");
		Hello h = (Hello) c.getBean("hello");
		h.setId("123456789");
		h.setSaying("Hello World.....!!! ");
		d.simpleSend(h);
	}

}
